/*
 * XML Type:  ExtendedPayment
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ExtendedPayment
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML ExtendedPayment(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ExtendedPaymentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.ExtendedPayment
{
    
    public ExtendedPaymentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName EXTDPMTFOR$0 = 
        new javax.xml.namespace.QName("", "EXTDPMTFOR");
    private static final javax.xml.namespace.QName EXTDPMTCHK$2 = 
        new javax.xml.namespace.QName("", "EXTDPMTCHK");
    private static final javax.xml.namespace.QName EXTDPMTDSC$4 = 
        new javax.xml.namespace.QName("", "EXTDPMTDSC");
    private static final javax.xml.namespace.QName EXTDPMTINV$6 = 
        new javax.xml.namespace.QName("", "EXTDPMTINV");
    
    
    /**
     * Gets the "EXTDPMTFOR" element
     */
    public net.ofx.types.x2003.x04.ExtendedPaymentForEnum.Enum getEXTDPMTFOR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTDPMTFOR$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.ExtendedPaymentForEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "EXTDPMTFOR" element
     */
    public net.ofx.types.x2003.x04.ExtendedPaymentForEnum xgetEXTDPMTFOR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPaymentForEnum target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPaymentForEnum)get_store().find_element_user(EXTDPMTFOR$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "EXTDPMTFOR" element
     */
    public boolean isSetEXTDPMTFOR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTDPMTFOR$0) != 0;
        }
    }
    
    /**
     * Sets the "EXTDPMTFOR" element
     */
    public void setEXTDPMTFOR(net.ofx.types.x2003.x04.ExtendedPaymentForEnum.Enum extdpmtfor)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTDPMTFOR$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EXTDPMTFOR$0);
            }
            target.setEnumValue(extdpmtfor);
        }
    }
    
    /**
     * Sets (as xml) the "EXTDPMTFOR" element
     */
    public void xsetEXTDPMTFOR(net.ofx.types.x2003.x04.ExtendedPaymentForEnum extdpmtfor)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPaymentForEnum target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPaymentForEnum)get_store().find_element_user(EXTDPMTFOR$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ExtendedPaymentForEnum)get_store().add_element_user(EXTDPMTFOR$0);
            }
            target.set(extdpmtfor);
        }
    }
    
    /**
     * Unsets the "EXTDPMTFOR" element
     */
    public void unsetEXTDPMTFOR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTDPMTFOR$0, 0);
        }
    }
    
    /**
     * Gets the "EXTDPMTCHK" element
     */
    public java.lang.String getEXTDPMTCHK()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTDPMTCHK$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "EXTDPMTCHK" element
     */
    public net.ofx.types.x2003.x04.ExtType xgetEXTDPMTCHK()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtType target = null;
            target = (net.ofx.types.x2003.x04.ExtType)get_store().find_element_user(EXTDPMTCHK$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "EXTDPMTCHK" element
     */
    public boolean isSetEXTDPMTCHK()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTDPMTCHK$2) != 0;
        }
    }
    
    /**
     * Sets the "EXTDPMTCHK" element
     */
    public void setEXTDPMTCHK(java.lang.String extdpmtchk)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTDPMTCHK$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EXTDPMTCHK$2);
            }
            target.setStringValue(extdpmtchk);
        }
    }
    
    /**
     * Sets (as xml) the "EXTDPMTCHK" element
     */
    public void xsetEXTDPMTCHK(net.ofx.types.x2003.x04.ExtType extdpmtchk)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtType target = null;
            target = (net.ofx.types.x2003.x04.ExtType)get_store().find_element_user(EXTDPMTCHK$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ExtType)get_store().add_element_user(EXTDPMTCHK$2);
            }
            target.set(extdpmtchk);
        }
    }
    
    /**
     * Unsets the "EXTDPMTCHK" element
     */
    public void unsetEXTDPMTCHK()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTDPMTCHK$2, 0);
        }
    }
    
    /**
     * Gets the "EXTDPMTDSC" element
     */
    public java.lang.String getEXTDPMTDSC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTDPMTDSC$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "EXTDPMTDSC" element
     */
    public net.ofx.types.x2003.x04.MessageType xgetEXTDPMTDSC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(EXTDPMTDSC$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "EXTDPMTDSC" element
     */
    public boolean isSetEXTDPMTDSC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTDPMTDSC$4) != 0;
        }
    }
    
    /**
     * Sets the "EXTDPMTDSC" element
     */
    public void setEXTDPMTDSC(java.lang.String extdpmtdsc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXTDPMTDSC$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EXTDPMTDSC$4);
            }
            target.setStringValue(extdpmtdsc);
        }
    }
    
    /**
     * Sets (as xml) the "EXTDPMTDSC" element
     */
    public void xsetEXTDPMTDSC(net.ofx.types.x2003.x04.MessageType extdpmtdsc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(EXTDPMTDSC$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MessageType)get_store().add_element_user(EXTDPMTDSC$4);
            }
            target.set(extdpmtdsc);
        }
    }
    
    /**
     * Unsets the "EXTDPMTDSC" element
     */
    public void unsetEXTDPMTDSC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTDPMTDSC$4, 0);
        }
    }
    
    /**
     * Gets the "EXTDPMTINV" element
     */
    public net.ofx.types.x2003.x04.ExtendedPaymentInvoice getEXTDPMTINV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPaymentInvoice target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPaymentInvoice)get_store().find_element_user(EXTDPMTINV$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "EXTDPMTINV" element
     */
    public boolean isSetEXTDPMTINV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(EXTDPMTINV$6) != 0;
        }
    }
    
    /**
     * Sets the "EXTDPMTINV" element
     */
    public void setEXTDPMTINV(net.ofx.types.x2003.x04.ExtendedPaymentInvoice extdpmtinv)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPaymentInvoice target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPaymentInvoice)get_store().find_element_user(EXTDPMTINV$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ExtendedPaymentInvoice)get_store().add_element_user(EXTDPMTINV$6);
            }
            target.set(extdpmtinv);
        }
    }
    
    /**
     * Appends and returns a new empty "EXTDPMTINV" element
     */
    public net.ofx.types.x2003.x04.ExtendedPaymentInvoice addNewEXTDPMTINV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ExtendedPaymentInvoice target = null;
            target = (net.ofx.types.x2003.x04.ExtendedPaymentInvoice)get_store().add_element_user(EXTDPMTINV$6);
            return target;
        }
    }
    
    /**
     * Unsets the "EXTDPMTINV" element
     */
    public void unsetEXTDPMTINV()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(EXTDPMTINV$6, 0);
        }
    }
}
